package com.yiwei.app.modules.entity;

import java.util.Date;

import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.NotEmpty;
/**********
 * 订单信息
 * @author fanguangcong
 *
 */
public class OrderInfo {
    private String id;

    private String userId;
    @NotEmpty
    private String fromAreaId;
    @NotEmpty
    private String fromAddressDetail;
    @NotEmpty
    private String toAreaId;
    @NotEmpty
    private String toAddressDetail;
    @NotEmpty
    private String carId;
    
    private Double startingPrice;
    
    private Double timeCost;

    private Double mileageCost;

    private Double thingsWeight;

    private Double tipAmount;

    private String tipReason;
    @NotEmpty
    private String type;
    @NotEmpty
    private String state;
    @NotEmpty
    private String delFlag;

    private String note;
    @NotEmpty
    private String adminId;

    private Date createTime;

    private Date lastModifyTime;

    private String data1;

    private String data2;

    private String data3;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId == null ? null : userId.trim();
    }

    public String getFromAreaId() {
        return fromAreaId;
    }

    public void setFromAreaId(String fromAreaId) {
        this.fromAreaId = fromAreaId == null ? null : fromAreaId.trim();
    }

    public String getFromAddressDetail() {
        return fromAddressDetail;
    }

    public void setFromAddressDetail(String fromAddressDetail) {
        this.fromAddressDetail = fromAddressDetail == null ? null : fromAddressDetail.trim();
    }

    public String getToAreaId() {
        return toAreaId;
    }

    public void setToAreaId(String toAreaId) {
        this.toAreaId = toAreaId == null ? null : toAreaId.trim();
    }

    public String getToAddressDetail() {
        return toAddressDetail;
    }

    public void setToAddressDetail(String toAddressDetail) {
        this.toAddressDetail = toAddressDetail == null ? null : toAddressDetail.trim();
    }

    public String getCarId() {
        return carId;
    }

    public void setCarId(String carId) {
        this.carId = carId == null ? null : carId.trim();
    }

    public Double getStartingPrice() {
        return startingPrice;
    }

    public void setStartingPrice(Double startingPrice) {
        this.startingPrice = startingPrice;
    }

    public Double getTimeCost() {
        return timeCost;
    }

    public void setTimeCost(Double timeCost) {
        this.timeCost = timeCost;
    }

    public Double getMileageCost() {
        return mileageCost;
    }

    public void setMileageCost(Double mileageCost) {
        this.mileageCost = mileageCost;
    }

    public Double getThingsWeight() {
        return thingsWeight;
    }

    public void setThingsWeight(Double thingsWeight) {
        this.thingsWeight = thingsWeight;
    }

    public Double getTipAmount() {
        return tipAmount;
    }

    public void setTipAmount(Double tipAmount) {
        this.tipAmount = tipAmount;
    }

    public String getTipReason() {
        return tipReason;
    }

    public void setTipReason(String tipReason) {
        this.tipReason = tipReason == null ? null : tipReason.trim();
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type == null ? null : type.trim();
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state == null ? null : state.trim();
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag == null ? null : delFlag.trim();
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note == null ? null : note.trim();
    }

    public String getAdminId() {
        return adminId;
    }

    public void setAdminId(String adminId) {
        this.adminId = adminId == null ? null : adminId.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getLastModifyTime() {
        return lastModifyTime;
    }

    public void setLastModifyTime(Date lastModifyTime) {
        this.lastModifyTime = lastModifyTime;
    }

    public String getData1() {
        return data1;
    }

    public void setData1(String data1) {
        this.data1 = data1 == null ? null : data1.trim();
    }

    public String getData2() {
        return data2;
    }

    public void setData2(String data2) {
        this.data2 = data2 == null ? null : data2.trim();
    }

    public String getData3() {
        return data3;
    }

    public void setData3(String data3) {
        this.data3 = data3 == null ? null : data3.trim();
    }
}